const mongoose = require('mongoose')



const banners = mongoose.Schema({
    imgname: String,
    imgurl: String,
    status: {
        type: Number,
        enum: [1, 2],
        default: 1   //表示 1 上架  2 下架 
    },
    createTime: {
        type: Date,
        default: new Date()
    }
})

const BannerModel = mongoose.model('banners', banners)




module.exports = {
    BannerModel
}